<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /* search 
        -1  字符串是不包含这个值
        startsWith
        */
        var str='hello world'
        var http="https://www.baidu.com"
        console.log(str.search("i"))
        console.log(http.startsWith("https"))
    </script>
</body>
</html>